package com.project.blog.service;

import com.project.blog.entity.Article;
import com.project.blog.entity.ArticleQuery;
import com.project.blog.vo.PageResult;

import java.util.List;

public interface ArticleService {


    Integer publishArticle(Article article);

    Integer saveArticle(Article article);

    Integer updateArticle(Article article);


    List<Article> listNewArticles();

    Article getArticleAndAddViews(Integer id);


    PageResult<Article> list(ArticleQuery query);

    PageResult<Article> getArticlesByTag(ArticleQuery query);
}
